Proper connect_port
[juce-lv2.git] / juce / source / extras / the jucer / src / ui / jucer_MainWindow.h
blobd1ec6f3a52dc73aae7378113ae6c1cfcca934179
1 /*
2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 #ifndef __JUCER_MAINWINDOW_JUCEHEADER__
27 #define __JUCER_MAINWINDOW_JUCEHEADER__
29 #include "jucer_JucerDocumentHolder.h"
30 class MultiDocHolder;
33 //==============================================================================
34 /**
35 The big top-level window where everything happens.
37 class MainWindow : public DocumentWindow,
38 public MenuBarModel,
39 public ApplicationCommandTarget,
40 public FileDragAndDropTarget
42 public:
43 //==============================================================================
44 MainWindow();
45 ~MainWindow();
47 //==============================================================================
48 void closeButtonPressed();
50 //==============================================================================
51 void openDocument (JucerDocument* const newDoc);
52 bool openFile (const File& file);
54 bool closeDocument (JucerDocumentHolder* designHolder);
55 bool closeAllDocuments();
57 bool isInterestedInFileDrag (const StringArray& files);
58 void filesDropped (const StringArray& filenames, int mouseX, int mouseY);
60 void activeWindowStatusChanged();
62 //==============================================================================
63 const StringArray getMenuBarNames ();
64 const PopupMenu getMenuForIndex (int topLevelMenuIndex, const String& menuName);
65 void menuItemSelected (int menuItemID, int topLevelMenuIndex);
67 //==============================================================================
68 ApplicationCommandTarget* getNextCommandTarget();
69 void getAllCommands (Array <CommandID>& commands);
70 void getCommandInfo (CommandID commandID, ApplicationCommandInfo& result);
71 bool isCommandActive (const CommandID commandID);
72 bool perform (const InvocationInfo& info);
74 private:
75 MultiDocHolder* multiDocHolder;
77 JucerDocument* getActiveDocument() const throw();
81 #endif // __JUCER_MAINWINDOW_JUCEHEADER__